﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Models
{
    public class ParticipantField
    {
        public virtual int fieldID { get; set; }
        public virtual String name { get; set; }
        public virtual ICollection<ParticipantFieldValue> fieldValues { get; set; }

        public ParticipantField()
        {
            this.fieldID = -1;
            this.name = String.Empty;
            this.fieldValues = null;
        }

        public ParticipantField(String name)
        {
            this.fieldID = -1;
            this.name = name;
            this.fieldValues = new HashSet<ParticipantFieldValue>();
        }

        public ParticipantField(String name, ICollection<ParticipantFieldValue> fieldValues)
        {
            this.fieldID = -1;
            this.name = name;
            this.fieldValues = fieldValues;
        }

        public ParticipantField(int fieldID, String name, ICollection<ParticipantFieldValue> fieldValues)
        {
            this.fieldID = fieldID;
            this.name = name;
            this.fieldValues = fieldValues;
        }
    }
}
